From: Ewan Mellor Date: Wed, 1 Nov 2006 18:39:33 +0000 (+0000) Subject: Return the restored VM at the end of XendDomainInfo.restore. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~15567^2~146 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22Dat/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22Dat?a=commitdiff_plain;h=c82aef9e98779d950c9d9f523000da91ae875697;p=xen.git Return the restored VM at the end of XendDomainInfo.restore. Signed-off-by: Ewan Mellor --- diff --git a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py index 5d9a9a98be..93edfa7b03 100644 --- a/tools/python/xen/xend/XendDomainInfo.py +++ b/tools/python/xen/xend/XendDomainInfo.py @@ -249,6 +249,7 @@ def restore(config): vm = XendDomainInfo(XendConfig(sxp = config), resume = True) try: vm.resume() + return vm except: vm.destroy() raise